<?php $this->load->view('base/header'); ?>

<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/jquery.datatable.gui.css' ?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/jquery-ui-1.8.14.custom.css' ?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/table.css' ?>"/>

<script type="text/javascript" src="<?php echo base_url() . 'js/jquery-ui-1.8.14.custom.min.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/jquery.dataTables.js' ?>"></script>

<script type="text/javascript" src="<?php echo base_url() . 'js/br-03/skema_angsuran.js' ?>"></script>

<section>
    <div class="container_8 clearfix">

        <!-- Main Section -->

        <section class="main-section grid_8">
            <!-- Tabs Section -->
            <div class="main-content">
                <header>
                    <ul class="action-buttons clearfix fr">

                    </ul>
                    <h2>Skema Angsuran</h2>
                </header>
                <section class="container_6 clearfix">
                    <div class="grid_6">

                        <section class="clearfix">

                            <input type="hidden" name="ID_PINJAMAN" id="ID_PINJAMAN" value="<?php echo $id;?>"/>
                            <div style="clear: both; margin-bottom: 20px;"></div>
                            <h3>Skema Angsuran</h3>
                            <div id="angsuran_dialog">
                                <table id="angsuran_table" width="100%" class="datatable">
                                    <thead>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>

                            <br/>
                            <br/>

                        </section>
                    </div>
                </section>
            </div>
            <!-- End Tabs Section -->


            <!-- Main Section End -->

    </div>
</section>
</div>


<div id="angsuran_form_dialog">
    <form id="form_angsuran"  method="post" action="<?php echo base_url() . "br-03/peminjaman/add" ?>">
        <div class="clearfix">
            <label>ID Angsuran<em>*</em><small></small></label>
            <input type="text" name="ID_ANGSURAN" id="ID_ANGSURAN" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>ID Pinjaman<em>*</em><small></small></label>
            <input type="text" name="ID_PINJAMAN" id="ID_PINJAMAN" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Tanggal Angsuran <em>*</em><small></small></label>
            <input type="text" name="TGL_ANGSURAN" id="TGL_ANGSURAN" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Angsuran Ke <em>*</em><small></small></label>
            <input type="text" name="ANGSURAN_KE" id="ANGSURAN_KE" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Status<em>*</em><small></small></label>
            <input type="text" name="STATUS" id="STATUS" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Cicilan Pokok <em>*</em><small></small></label>
            <input type="text" name="CICILAN_POKOK" id="CICILAN_POKOK" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Besar Bunga <em>*</em><small></small></label>
            <input type="text" name="BUNGA" id="BUNGA" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Besar Angsuran <em>*</em><small></small></label>
            <input type="text" name="ANGSURAN" id="ANGSURAN" required="required" size="4"/>
        </div>
        <div class="clearfix">
            <label>Sisa Hutang <em>*</em><small></small></label>
            <input type="text" name="PIUTANG" id="PIUTANG" required="required" size="4"/>
        </div>

        <div class="action clearfix">
            <button class="button button-gray" type="submit" id="UPDATE"><span class="accept"></span>Save</button>
            <button class="button button-gray" type="reset"><span class="bin"></span>Reset</button>

        </div>
    </form>


</div>


<?php $this->load->view('base/footer'); ?>
